﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WorkWithPeople
{
    public class PersonInfo
    {
        public string DisplayName 
        { 
            get
            {
                return Name + " " + SecondName;
            }  
        }

        public Guid Id { get; private set; }

        public string Name { get; set; }

        public string SecondName { get; set; }

        public string LastName { get; set; }

        public string Birthday { get; set; }

        public string PhoneNumber { get; set; }

        public string StreetAdress { get; set; }

        public PersonInfo(string Name, string secondName,
            string lastName, string birthday, string phoneNumber, string streetAdress) : this()
        {           
            this.Name = Name;
            this.SecondName = secondName;
            this.LastName = lastName;
            this.Birthday = birthday;
            this.PhoneNumber = phoneNumber;
            this.StreetAdress = streetAdress;
        }

        public PersonInfo()
        {
            this.Id = Guid.NewGuid(); 
        }
    }
}
